
package system.base;
import framework.core.*;


public class OrderDetailSignInSearchEvent extends SearchEvent
{
	private String m_start_time = "" ;	
	
	private String m_end_time = "" ;
	
	private String m_concentricity_code = "" ;	
	
	private String m_name = "" ;	
	
	private String m_drawing_piece_code = "" ;	
	
	
	

	public String getConcentricityCode() {
		return m_concentricity_code;
	}
	public void setConcentricityCode(String m_concentricity_code) {
		this.m_concentricity_code = m_concentricity_code;
	}
	public String getName() {
		return m_name;
	}
	public void setName(String m_name) {
		this.m_name = m_name;
	}
	public String getDrawingPieceCode() {
		return m_drawing_piece_code;
	}
	public void setDrawingPieceCode(String m_drawing_piece_code) {
		this.m_drawing_piece_code = m_drawing_piece_code;
	}
	public String getStartTime()
	{
		return m_start_time ;
	}
	public void setStartTime(String v)
	{
		m_start_time = v;
	}
	
	public String getEndTime()
	{
		return m_end_time ;
	}
	public void setEndTime(String v)
	{
		m_end_time = v;
	}

	
	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();
		if (!getStartTime().equalsIgnoreCase("")) {
		   c.add(" GS_SIGNIN_DATE >= ?",Conditions.CUSTOM,getStartTime());
		}
		    
		if (!getEndTime().equalsIgnoreCase("")) {
		   c.add(" GS_SIGNIN_DATE <= ?",Conditions.CUSTOM,getEndTime());
		}
		if (!getConcentricityCode().equalsIgnoreCase("")) {
		c.add("CONCENTRICITY_CODE",Conditions.LIKE,"%"+getConcentricityCode()+"%");
		}
		if (!getName().equalsIgnoreCase("")) {
			c.add("NAME",Conditions.LIKE,"%"+getName()+"%");
		}
		if (!getDrawingPieceCode().equalsIgnoreCase("")) {
			c.add("DRAWING_PIECE_CODE",Conditions.LIKE,"%"+getDrawingPieceCode()+"%");
		}
		return c ;
	}
}
